print("购物小票")
goods = ["金士顿优盘 单价 ￥40", "16G TF卡 单价 ￥50",
         "读卡器 单价 ￥8", "网线2米 单价 ￥5"]
nums = []

for good in goods:
    print(good)
    num = int(input("请输入购买数量\n"))
    nums.append(num)

# print(nums)

total = int(nums.pop(0)) * 40 + int(nums.pop(0)) * 50 + \
        int(nums.pop(0)) * 8 + int(nums.pop(0)) * 5

print(f"您共花费￥{total}")
